import request from '@/utils/request'

// 查询烧结矿化学成分列表
export function listCheIngredients(query) {
  return request({
    url: '/quality/cheIngredients/list',
    method: 'get',
    params: query
  })
}

// 查询烧结矿化学成分列表(分页)
export function pageCheIngredients(query) {
  return request({
    url: '/quality/cheIngredients/page',
    method: 'get',
    params: query
  })
}

// 查询烧结矿化学成分详细
export function getCheIngredients(id) {
  return request({
    url: '/quality/cheIngredients/get/' + id,
    method: 'get'
  })
}

// 新增烧结矿化学成分
export function addCheIngredients(data) {
  return request({
    url: '/quality/cheIngredients/add',
    method: 'post',
    data: data
  })
}

// 修改烧结矿化学成分
export function updateCheIngredients(data) {
  return request({
    url: '/quality/cheIngredients/edit',
    method: 'post',
    data: data
  })
}

// 删除烧结矿化学成分
export function delCheIngredients(id) {
  return request({
    url: '/quality/cheIngredients/remove/' + id,
    method: 'post'
  })
}

// 查询烧结矿化学成分列表
export function chemistryIngredientsList(query) {
  return request({
    url: '/quality/ingredients/chemistryIngredientsList',
    method: 'get',
    params: query
  })
}

